import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'normalize.css/normalize.css'
import '@/styles/index.scss'    // global css
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/css/reset.css'
import request from '@/utils/request'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import '@/icons' // icon
import { isAuth } from '@/utils/util'
import Pagination from '@/components/Pagination'

Vue.use(mavonEditor)
Vue.use(ElementUI);
// 全局组件挂载 分页组件
Vue.component('Pagination', Pagination)
import VueWechatTitle from 'vue-wechat-title'
Vue.use(VueWechatTitle)

import global from "@/utils/global";
Vue.use(global)
Vue.prototype.isAuth = isAuth     // 权限方法
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
